package com.gufe.controller.user.mp;


import com.gufe.service.user.mp.WxSwiperService;
import com.gufe.result.Result;
import com.gufe.vo.SwiperVO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
@RequestMapping("/api/index")
public class WxSwiperController {

    @Autowired
    WxSwiperService wxSwiperService;

    @GetMapping("/swiper")
    public Result<List<SwiperVO>> getAllIndexImg() {
        return Result.success(wxSwiperService.getAllIndexImg());
    }
}
